package com.lagou.edu.service;

import com.lagou.edu.dao.Resume;
import com.lagou.edu.dao.ResumeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 6550
 * @date 2020/2/27 上午 08:06
 * @description
 */
@Service
public class ResumeServiceImpl implements ResumeService {


    @Autowired
    ResumeDao resumeDao;

    @Override
    public List<Resume> findAll() {
        List<Resume> all = resumeDao.findAll();
        return all;
    }


    @Override
    public void save(Resume resume) {
        resumeDao.save(resume);
    }

    @Override
    public void delete(Integer id) {
        resumeDao.deleteById(id.longValue());
    }
}
